package com.ihr360.cnb.module.insurance.service.feign.fallback;

import com.ihr360.cnb.module.insurance.service.feign.InsuranceCompanyBenefitService;
import com.ihr360.commons.exception.Ihr360Exception;
import com.ihr360.commons.model.type.BenefitCategory;
import com.ihr360.commons.vo.PageData;
import com.ihr360.insurance.entity.request.SingleStaffBenefitVoRequest;
import com.ihr360.insurance.entity.request.StaffBenefitRequest;
import com.ihr360.insurance.entity.request.StaffBenefitVoRequest;
import com.ihr360.insurance.entity.request.StaffIdRequest;
import com.ihr360.insurance.entity.vo.StaffBenefitVo;
import org.springframework.stereotype.Component;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-06-06 15:26:09.
 */
@Component
public class InsuranceCompanyBenefitServiceFallback implements InsuranceCompanyBenefitService {

    private static final String MESSAGE = "内部服务调用失败：调用福利云服务失败";

    @Override
    public PageData<StaffBenefitVo> getUnrelatedStaffs(String companyId,
                                                       StaffBenefitRequest staffBenefitRequest) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public int getRelatedStaffCount(String companyId, BenefitCategory category, StaffIdRequest staffIdRequest) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public int getUnRelatedStaffCount(String companyId, BenefitCategory category, StaffIdRequest staffIdRequest) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void saveBenefits(String companyId, BenefitCategory category, StaffBenefitVoRequest request) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void saveSingleBenefits(String companyId, BenefitCategory category, SingleStaffBenefitVoRequest request) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void deleteSingleBenefits(String companyId, BenefitCategory category, SingleStaffBenefitVoRequest request) {
        throw new Ihr360Exception("", MESSAGE);
    }
}
